package com.study.spmongodb.wwj.thread.char08;

/**
 * @author MI
 * @version 1.0
 * @date 2020/12/6 14:45
 */
public class OtherService {

    private final Object lock = new Object();

    public void s1() {
        synchronized (lock) {
            System.out.println("s1------");
        }
    }
}
